package com.powerdata.core.paimon.bean.table;


public class TableTransactionsBean {
    private String transactionId;//事务id
    private String operation;//事务类型
    private Integer addFileCount;//新增文件数
    private Integer deleteFileCount;//删除文件数
    private Double addFileSize;//新增文件大小
    private Double deleteFileSize;//删除文件大小
    private Long records;//数据明细
    private Long CommitTime;//事务提交时间
    private String snapshotId;//快照id
    private String parentId;//父级快照
    private Boolean isCurrent = false;//是否是当前快照

    public TableTransactionsBean() {
    }

    public TableTransactionsBean(long transactionId, String operation, Integer addFileCount, Integer deleteFileCount,
                                 Double addFileSize, Double deleteFileSize, Long commitTime, long snapshotId, String parentId) {
        this.transactionId = transactionId + "";
        this.operation = operation;
        this.addFileCount = addFileCount;
        this.deleteFileCount = deleteFileCount;
        this.addFileSize = addFileSize;
        this.deleteFileSize = deleteFileSize;
        CommitTime = commitTime;
        this.snapshotId = snapshotId + "";
        this.parentId = parentId;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Integer getAddFileCount() {
        return addFileCount;
    }

    public void setAddFileCount(Integer addFileCount) {
        this.addFileCount = addFileCount;
    }

    public Integer getDeleteFileCount() {
        return deleteFileCount;
    }

    public void setDeleteFileCount(Integer deleteFileCount) {
        this.deleteFileCount = deleteFileCount;
    }

    public Double getAddFileSize() {
        return addFileSize;
    }

    public void setAddFileSize(Double addFileSize) {
        this.addFileSize = addFileSize;
    }

    public Double getDeleteFileSize() {
        return deleteFileSize;
    }

    public void setDeleteFileSize(Double deleteFileSize) {
        this.deleteFileSize = deleteFileSize;
    }

    public Long getRecords() {
        return records;
    }

    public void setRecords(Long records) {
        this.records = records;
    }

    public Long getCommitTime() {
        return CommitTime;
    }

    public void setCommitTime(Long commitTime) {
        CommitTime = commitTime;
    }

    public String getSnapshotId() {
        return snapshotId;
    }

    public void setSnapshotId(String snapshotId) {
        this.snapshotId = snapshotId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Boolean getCurrent() {
        return isCurrent;
    }

    public void setCurrent(Boolean current) {
        isCurrent = current;
    }
}
